package com.spring.importselector;

import com.spring.importselector.hello.impl.HelloServiceA;
import com.spring.importselector.hello.impl.HelloServiceB;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;
import org.springframework.stereotype.Component;

/**
 * @author zhangyan
 * @version $ Id: HelloImportSelector.java, v 0.1 2020/5/9 10:12 zhangyan Exp $
 */
public class HelloImportSelector implements ImportSelector {

	@Override
	public String[] selectImports(AnnotationMetadata importingClassMetadata) {
		return new String[]{HelloServiceA.class.getName(), HelloServiceB.class.getName()};
	}
}
